package com.wangzifan.mapper;

import com.wangzifan.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {

    @Update("update score_database set password=#{password} where username=#{username}")
    void updateUser(User user);

    @Select("select * from score_database.user where username=#{username} and password=#{password}")
    User queryUserByAccount(User user);
}
